package com.lap.component.discovery;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@SpringBootApplication
@EnableEurekaServer
public class EurekaBootstrap {

  public static void main(String[] args) {
    var app = new SpringApplication(EurekaBootstrap.class);
    app.addListeners(new ApplicationPidFileWriter());
    app.run(args);
  }
}
